export enum TaskStatus {
    UNKNOWN = 'UNKNOWN',
    SUCCESS = 'SUCCESS',
    ERROR = 'ERROR',
    RUN = 'RUN'
}

export const taskStatusTextMap = {
    [TaskStatus.UNKNOWN]: '未知',
    [TaskStatus.SUCCESS]: '成功',
    [TaskStatus.ERROR]: '异常',
    [TaskStatus.RUN]: '运行中'
}

export const taskStatusTagTypeMap: any = {
    [TaskStatus.UNKNOWN]: 'primary',
    [TaskStatus.SUCCESS]: 'success',
    [TaskStatus.ERROR]: 'danger',
    [TaskStatus.RUN]: 'warning'
}
